﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.User
{
    public class UserChangePasswordDto
    {
        public long UserId { get; set; }

        [JsonProperty(PropertyName = "oldPassword")]
        [Required(ErrorMessage = "请填写旧密码")]
        public string OldPassword { get; set; }

        [JsonProperty(PropertyName ="newPassword")]
        [Required(ErrorMessage = "请填写新密码")]
        public string NewPassword { get; set; }

        [JsonProperty(PropertyName = "confirmPassword")]
        [Required(ErrorMessage = "请填写确认密码")]
        public string ConfirmPassword { get; set; }

    }
}
